﻿namespace PLCS.Client.Service.Client;

public class ApiResponse
{
    public bool Status { get; set; }
    public string? Message { get; set; }
    public string? Data { get; set; }

    public ApiResponse(string message)
    {
        Status = false;
        Message = message;
    }

    public ApiResponse(bool status)
    {
        Status = status;
    }

    public ApiResponse()
    {
    }
}

public class ApiResponse<T>
{
    public bool Status { get; set; }
    public string? Message { get; set; }
    public T? Data { get; set; }

    public ApiResponse()
    {
    }

    public ApiResponse(string message)
    {
        Status = false;
        Message = message;
    }

    public ApiResponse(bool status, T data)
    {
        Status = status;
        Data = data;
    }
}